import static org.junit.Assert.*;

import org.junit.Test;


public class MaxFlowTest {

	@Test
	public void mf1() {
		int[][] matrix = {{0,2}, {0,0}};
		assertEquals(2, MaxFlow.maxFlow(matrix, 0, 1));
		
	}
	
	@Test
	public void mf2() {
		int[][] matrix = {{0,6,8,0}, {0,0,0,8}, {0,1,0,8}, {0,0,0,0}};
		assertEquals(14, MaxFlow.maxFlow(matrix, 0, 3));
		
	}
	
	@Test
	public void mf3() {
		int[][] matrix = {{0,5,1}, {0,0,5}, {0,0,0}};
		assertEquals(6, MaxFlow.maxFlow(matrix, 0, 2));
		
	}

}
